<include file="App/Home/View/Public/header.html"/>
<style>
  
    .swiper-container {
        width: 100%;
        height: 224px;
    }
    .swiper-slide {
        background-position: center;
        background-size: cover;
    }
    #table-2{
      width: 100%;
    }
    #table{
      width: 100%;
    }
    #font-right{
      margin:50px 0 0 0;
    }
    #font-left>div{
      text-align: center;
    }
    </style>
  <script type="text/javascript" src="__PUBLIC__/js/layer/layer.js"></script>
  	   <script type="text/javascript" src="__PUBLIC__/js/jquery-1.8.2.min.js"></script>
    <script type="text/javascript" src="__PUBLIC__/js/jquery-2.1.1.min.js"></script>
    <script type="text/javascript" src="/Public/Home/css/bootstrap.min.js"></script>

    <link href="/Public/Home/css/swiper.min.css" rel="stylesheet" />
     <link href="/Public/Home/css/bootstrap.css" rel="stylesheet" />
<div id="banner">
    <div id="nav-box-under">
      <div class="">                          
          <div class="col-xs-7">
             <div id="font-left">
                 <div>关注全球创新新区块链资产</div>
                 <div>新科技、新引擎、新革命</div>
             </div>
          </div>
          <div class="col-xs-4">  
              <empty name="member">
              <div id="font-right">
                <ul>
                  <li><span><a href="{:U('Index/inex')}" target="_self">登录</a></span></li>
                  <li><span><a href="{:U('Reg/reg')}" target="_self">注册</a></span></li>
                  <li>
                    <span><img src="__PUBLIC__/Home/image/zh-CN.png" height="15" width="21"></span> 
                    <input type="text" name="email_or_phone" id="email" placeholder="请输入用户名">
                  </li>
                  <li>
                    <span></span>
                    <input type="password" name="password" id="password" placeholder="请输入密码">
                  </li>
                  <li><!-- <a href="{:U('Login/findPwd')}" target="_self">忘记密码?</a> --></li>
                  <li><button onclick="login()" type="button" style="border: none">立即登录</button></li>
               </ul>
           <else/>
           <div id="font-right" style="margin-top: 33px;position: relative;z-index: 999;">
            <div class="tab tab01">
  							<h3 class="title" style="text-align:center;" >
  								<a href="{:U('User/index')}"
  									class="font_20" style="color:#fff;"> 账号：{$Think.session.USER_KEY} 
                  </a>
  							</h3>
  							<p style="text-align:center;" >
  								<a href="{:U('User/index')}" class="btn 
  								  btn_orange btn_url" style="color:#fff;">账户中心
                  </a>
  							</p>
  							<p class="m_t_10" style="text-align:center;" >
  								<a href="{:U('Entrust/manage')}" style="color:#fff;" class="btn btn_orange btn_url">委托管理</a>
  							</p>
  							<p class="button_box" style="text-align:center;" >
  								<a  href="javascript:void(0)" style="color:#fff;" onclick="confirm_fill();"  class="btn_white">充值</a>
  								<a href="{:U('User/draw')}" style="color:#fff;" class="btn_white">提现</a>
  							</p>
  						</div>
            </div>
             </empty>
            
  			 </div>
             
      </div>  
      </div>
   </div>
<script>
	function login() {
		var email = $('#email').val();
		var password = $('#password').val();
		if ($('#email').val().length <= 0) {
			layer.msg("请输入用户名");
			return;
		}
		if ($('#password').val().length <= 0) {
			layer.msg("请输入密码");
			return;
		}
		$.post("/Home/Login/checkLog", {
			email : email,
			pwd : password
		}, function(data) {
			layer.msg(data.info);
			<eq name="Think.session.is_phone" value="1" >  <else /> $('.layui-layer-msg').css({position:'absolute',left:'88%',top:'15%'});</eq>
			if (data.status == 1) {
				location.reload();
			}
		});

	}
</script>
    <div id="table">
        <div id="middle">
            <div id="table-1">
                <ul id="gonggao">
                    <li class="t1">
                        <a href="{:U('Art/index1',['position_id'=>1])}" target="_self">公告</a>
                        <ul class="t1-1" style="height:202px;">
						<volist name="gfgg" key='k' id="vo"> 
                            <a href="{:U('Art/details',['id'=>$vo['article_id']])}" style="display:table-row;text-align:left;"><li>{$vo['title']}<span>[{$vo['add_time']|date="m-d",###}]</span></li></a>
							</volist>
                          
                        </ul>
                    </li>
                    <li class="t2">
                        <a class="xw" href="{:U('Art/index1',['position_id'=>2])}" target="_self">新闻</a>
                        <ul class="t2-1" style="white-space:nowrap; overflow:hidden; text-overflow:ellipsis;height:202px;">
						<volist name="scdt" key='k' id="vo"> 
                            <a href="{:U('Art/details',['id'=>$vo['article_id']])}" style="
	display:table-row;background-color: #ffffff;
    color: #0590fe;
    text-decoration: none;
    width:395px;
    text-align:left;
    height:30px;"><li style="position:relative; "><span style="display:block; width:280px;white-space:nowrap; overflow:hidden; text-overflow:ellipsis;">{$vo['title']}</span><span style="position:absolute;top:0;right:-90px;">[{$vo['add_time']|date="m-d",###}]</span></li></a>
							</volist>
                        </ul>
                    </li>
                    <li  class="t3"><a href="{:U('Art/index1',['position_id'=>1])}" target="_self">查看更多</a></li>
                </ul>
            </div>
            <div id="p-right">
                <div class="swiper-container">
                  <div class="swiper-wrapper">
                     <volist name="flash" id="vo" key="k">
	                      <div class="swiper-slide" style="background-image:url({$vo.pic})"></div>
              			</volist>
                  </div>
                  <!-- Add Pagination -->
                  <div class="swiper-pagination swiper-pagination-white"></div>
                  <!-- Add Arrows -->
                  <div class="swiper-button-next swiper-button-white"></div>
                  <div class="swiper-button-prev swiper-button-white"></div>
              </div>
            </div>
        </div>
    </div>

<!------------------------------------------------尾部------------------------------------------------>
    <div id="table-2">
        <div>
            <span>|</span>
            <span>资产交易区</span>
            <span>ASSET TRADING AREA</span>
        </div>
        <table id="table1" cellspacing="0">
            <tr>
               <th>币种代码</th>
				<th>币种简称</th>
				<th>昨收盘 </th>
				<th>今开盘 </th>
				<th>最新价 </th>
				<th>涨跌</th>
				<th>成交量 </th>
				<th>成交金额 </th>
				<th>最高价 </th>
				<th>最低价 </th>
				<th>去交易</th> 
            </tr>
			<volist name="currency_or" id="vo">
            <tr>
			
               <td >{$vo.currency_mark}</td>
				<td >{$vo.currency_name}</td>
				<td >{$vo.zuorishoupan|default="0.00"}</td>
				<td >{$vo.kai_price|default="0.00"}</td>
				<td >{$vo.new_price|formatOrderNum=###}</td>
				<td >
					<gt name="vo.zhangfu" value="0">
					+{$vo.zhangfu|default='0'}
					<else/>
					{$vo.zhangfu|default='0'}
					</gt></td>
				<td >{$vo.all_num|default="0.00"}</td>
				<td >{$vo.currency_trade_all|default="0.00"}</td>
				<td >{$vo.zuigao|default="0.000"}</td>
				<td >{$vo.zuidi|default="0.00"}</td>
				<td ><a href="{:U('Orders/index',array('currency'=>$vo['currency_mark']))}">去交易</a></td>
            </tr>
			</volist>
            
        </table>
    </div>
	
<include file="App/Home/View/Public/footer.html"/>
<script src="/Public/Home/js/swiper.min.js"></script>

<script>
    var swiper = new Swiper('.swiper-container', {
        pagination: '.swiper-pagination',
        paginationClickable: '.swiper-pagination',
        nextButton: '.swiper-button-next',
        prevButton: '.swiper-button-prev',
        spaceBetween: 30,
        autoplay:2500,
        loop:true,
        effect: 'fade'
    });
    </script>